import { shopList } from '@/api/shop'
const state = {
  shopInfo: {}
}
const mutations = {
  SHOPINFO(state, data) {
    state.shopInfo = data
  }
}
const actions = {
  async getShopList({ commit }, data) {
    const res = await shopList(data.page, data.limit)
    if (res.code == 200) {
      commit('SHOPINFO', res.data)
    }
  }
}
const getters = {}
export default {
  state,
  mutations,
  actions,
  getters
}
